from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^add_comment', views.add_comment),
    url(r'^essay_list/(?P<page_size>[0-9]+)/?$', views.essay_list),
    url(r'^series_list/(?P<page_size>[0-9]+)/?$', views.series_list),
    url(r'^article/(?P<pk>[^/]+)/?$', views.essay_detail),
    url(r'^series/(?P<pk>[^/]+)/?$', views.series_detail),
    url(r'^article_pagination/(?P<page_number>[0-9]+)/(?P<page_size>[0-9]+)/?$', views.essay_pagination),
    url(r'^series_pagination/(?P<page_number>[0-9]+)/(?P<page_size>[0-9]+)/?$', views.series_pagination),
    url(r'^label_pagination/(?P<page_number>[0-9]+)/(?P<page_size>[0-9]+)/?$', views.label_pagination),
    url(r'^search_by_label/(?P<label_id>[^/]+)/(?P<page_number>[0-9]+)/(?P<page_size>[0-9]+)/?$', views.search_by_label),
    url(r'^search_essay/(?P<value>[^/]+)/?$', views.search_essay)
]